package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.minimall.MallUserWithdrawalsRecord;
import com.sc.nft.entity.vo.WxMiniUserWithdrawalsVO;
import com.sc.nft.entity.vo.mall.MallUserWithdrawalsRecordAdminPage;
import com.sc.nft.enums.WithdrawalsStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 用户提现记录表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-05-20
 */
@Mapper
public interface MallUserWithdrawalsRecordMapper extends BaseMapper<MallUserWithdrawalsRecord> {

    /**
     * 获取提现记录
     *
     * @param page
     * @param startTime
     * @param endTime
     * @param userTel
     * @param withdrawalsStatus
     * @return
     */
    Page<MallUserWithdrawalsRecordAdminPage> getAdminPage(Page page, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("userTel") String userTel, @Param("withdrawalsStatus") WithdrawalsStatusEnum withdrawalsStatus);

    /**
     * 获取用户提现记录
     *
     * @param page
     * @param wxMiniUserId
     * @return
     */
    Page<WxMiniUserWithdrawalsVO> getUserWithdrawalsRecord(Page page, @Param("wxMiniUserId") Long wxMiniUserId);
}
